StandardOutputStream Class

Used for writing data to the output or error streams in console applications.

Events

None

Properties

None

Methods

Write

WriteLine


More information available in parent classes: Object


Notes

Since there is only one StandardOutputStream for the system, you do not need to create a StandardOutputStream object to use; you just use StdOut or StdErr for the Error stream.

The StandardOutputStream class implements the "Writable" class interface. If you implement this interface, you must provide a Write method with the parameter as shown above.

StandardOutputStream incorporates a conversion operator so that you can use StdOut and StdErr as TCPSockets. This is useful only for services that are started for you by xinetd on Mac OS X or Linux. Here is an example of how to use this:

Dim Outgoing as TCPSocket = StdOut
Dim ErrMsg as TCPSocket = StdErr

See Also

ConsoleApplication class; Input, Print, StandardInputStream, StdErr, StdIn, StdOut, methods; TargetHasGUI constant.